package stone;

import java.math.*;
public class SteinLib {
//	private BColor mBColor; // = empty; !!!!!
		// @
		int[][] s01 = 	{{ 1 }};
		
		// @ @
		int[][] s02 = 	{{ 1,1 }};

		// @ @
		// @ @
		int[][] s03 = 	{{ 1,1 }
  					  	,{ 0,1 }};

		int[][] s04 = 	{{ 1,1 }
						,{ 1,1 }};


		// @ @ @
		int[][] s05 = 	{{ 1,1,1 }};
			
		
		// @ @ @
		// @ @ @
		int[][] s07 = 	{{ 1,0,1 }
						,{ 1,1,1 }};
		
		int[][] s08 = 	{{ 0,1,0 }
						,{ 1,1,1 }};
		
		int[][] s09 = 	{{ 0,0,1 }
						,{ 1,1,1 }};

		int[][] s10 = 	{{ 0,1,1 }
						,{ 1,1,0 }};
		
		int[][] s06 =	{{ 0,1,1 }
						,{ 1,1,1 }};

		
		// @ @ @
		// @ @ @
		// @ @ @
		int[][] s11 = 	{{ 0,1,1 }
						,{ 1,1,0 }
						,{ 1,0,0 }};
		
		int[][] s12 = 	{{ 0,1,1 }
						,{ 1,1,0 }
						,{ 0,1,0 }};
		
		int[][] s13 = 	{{ 0,1,0 }
						,{ 1,1,1 }
						,{ 0,1,0 }};
		
		int[][] s14 = 	{{ 0,1,0 }
						,{ 0,1,0 }
						,{ 1,1,1 }};
		
		int[][] s15 = 	{{ 1,0,0 }
						,{ 1,0,0 }
						,{ 1,1,1 }};
		
		int[][] s16 = 	{{ 0,0,1 }
						,{ 1,1,1 }
						,{ 1,0,0 }};

	
		// @ @ @ @
		int[][] s17 = 	{{ 1,1,1,1 }};
		
		// @ @ @ @
		// @ @ @ @
		int[][] s18 = 	{{ 0,1,0,0 }
						,{ 1,1,1,1 }};
		
		int[][] s19 = 	{{ 1,0,0,0 }
						,{ 1,1,1,1 }};
		
		int[][] s20 = 	{{ 0,1,1,1 }
						,{ 1,1,0,0 }};
		
		
		// @ @ @ @ @
		int[][] s21 =	{{ 1,1,1,1,1 }};
		
		
		int[][][] all = { s01, s02, s03, s04, s05,
						  s06, s07, s08, s09, s10,
						  s11, s12, s13, s14, s15,
						  s16, s17, s18, s19, s20,
						  s21 };
		Stein [] allStones;
		
//	public SteinLib() {
//		this(mBColor);
//		// mBColor = empty;!!!!
//	}
	public SteinLib() {
		if (1 >all.length) System.exit(32);
		allStones = new Stein[all.length];
		for (int i=0; i< allStones.length; i++) {
			allStones[i] = new Stein(all[i]);
		}
		
	}
	
	
	/**
	 * @param args
	 */
	public Stein getStein(int id) {
		if (id <=all.length) {
			return allStones[id];
		}
		return null;
	}
//	public Stein getStein(int id, int farbe) {
//		farbe = (int) Math.pow(2,farbe);
//		if (id <=all.length) {
//			Stein tmp = new Stein(all[id]);
//			return tmp;
//		}
//		return null;
//	}
	public int getSteinAnzahl() {
		return allStones.length;
	}
	// BColor setzen
	public void setColor() {
		// enum BColor in jedem Stein mit for schleife setzen
	}
//	public BColor getColor(int id) {
//		return null;
//	}
	// check fuer alle methoden ob array != null ist.
}
